@extends('layouts.default')

@section('content')
    <div class="row">
       <div class="offset-md-2 col-md-8">
           <div class="col-md-12">
               <div class="offset-md-2 col-md-8">
                   <section class="d-flex flex-column justify-content-center align-items-center">
                       @include('shared._user_show',compact('user'))
                   </section>
                    <section>
                        @include('shared._total',compact('user'))
                    </section>

                   @if(count($posts) > 0)
                       <section>
                           <div class="list-group">
                               @include('posts._posts')
                           </div>

                           <div class="mt-3">
                               {{$posts->links()}}
                           </div>
                       </section>
                   @else
                       <hr/>
                       <div class="text-center text-info">还没有发表内容呢~</div>
                   @endif
               </div>
           </div>
       </div>
    </div>
@stop
